package day_06;

import java.util.Scanner;

/**
 * @ClassName test01
 * @Description TODO
 * @Author hp
 * @Date 2021/6/8 15:04
 * @Version 1.0
 **/
public class test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] arr = new int[6];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int) (Math.random() * 99 + 1);
            System.out.println(arr[i]);
        }
        int b = 0;
        for (int i = 0; i < arr.length; i++) {

            boolean a = true;
            for (int j = 2; j < arr[i]; j++) {
                if (arr[i] % j == 0) {
                    a = false;
                    break;
                }

            }
            if (a) {
                b++;
            }
        }
        System.out.println("有" + b + "个");

    }
}
